//
//  LDSingieceWeb.m
//  Gift
//
//  Created by 李迪 on 15/11/11.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "LDSingieceWeb.h"
#import "BaseHeader.h"

@interface LDSingieceWeb ()<UIWebViewDelegate>

@property (nonatomic, retain)UIWebView *webView;
@property (nonatomic, retain)NSURLRequest *request;
@property (nonatomic, retain)UIView *blackView;


@end

@implementation LDSingieceWeb

- (void)dealloc{
    self.webView.delegate = nil;
    [self.blackView release];
    [self.strWeb release];
    [super dealloc];
    
}


- (void)viewDidLoad {
    [super viewDidLoad];
    _webView = [[UIWebView alloc]initWithFrame:self.view.bounds];
    [_webView setDelegate:self];
    [_webView setScalesPageToFit:YES];
    
    _request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",self.strWeb]]];
    [_webView loadRequest:_request];
    [_webView setBackgroundColor:[UIColor whiteColor]];
    [self.view addSubview:_webView];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
